<?php

class Application_Form_Registerform extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
        $this->setMethod('post');

        $this->addElement('text','fullname',array(
    		'required'=>true,
			'label'=> 'Full Name : ',
    		'validators' => array(
    			array('NotEmpty',true,array('messages' => 'This field is required')),
    			array('StringLength',false, array(4,50,'messages'=>'The entered value is too short')),

    		),
    	));

        $this->addElement('text','username',array(
    		'required'=>true,
			'label'=> 'User Name : ',
    		'validators' => array(
    			array('NotEmpty',true,array('messages' => 'This field is required')),
    			array('StringLength',false, array(4,40,'messages'=>'The entered value is too short')),

    		),
    	));

        $this->addElement('text','firstname',array(
    		'required'=>true,
			'label'=> 'First Name : ',
    		'validators' => array(
    			array('NotEmpty',true,array('messages' => 'This field is required')),
    			array('StringLength',false, array(4,40,'messages'=>'The entered value is too short')),

    		),
    	));

        $this->addElement('text','lastname',array(
    		'required'=>true,
			'label'=> 'User Name : ',
    		'validators' => array(
    			array('NotEmpty',true,array('messages' => 'This field is required')),
    			array('StringLength',false, array(4,40,'messages'=>'The entered value is too short')),

    		),
    	));

        $this->addElement('password','password',array(
    		'required'=>true,
		'label'=> 'Password : ',
                'renderPassword' => true,
    		'validators' => array(
    			array('NotEmpty',true,array('messages' => 'This field is required')),
    			array('StringLength',false, array(4,40,'messages'=>'The entered value is too short')),

    		),
    	));

        $this->addElement('text','email',array(
    		'required'=>true,
		'label'=> 'E-Mail : ',
    		'validators' => array(
                        array('EmailAddress',true),
    			array('NotEmpty',true,array('messages' => 'This field is required')),
    			array('StringLength',false, array(4,40,'messages'=>'The entered value is too short')),

    		),
    	));

        $this->addElement('text','gamertag',array(
    		'required'=>true,
		'label'=> 'Shadow Era Tag : ',
    		'validators' => array(
    			array('NotEmpty',true,array('messages' => 'This field is required')),
    			array('StringLength',false, array(4,40,'messages'=>'The entered value is too short')),
    		),
    	));

        $this->addElement('submit','submit',array(
			'label'=> 'Submit'
    	));


    }


}

